export interface RouteAdapter {
    push(url:string): any
}


class RouterManger {
    routeAdapter: RouteAdapter
    registerRouteAdapter(adapter: RouteAdapter) {
        this.routeAdapter = adapter
    }
    push(url:string) { 
        this.routeAdapter.push(url)
    }
    replace() { }
    go() { }
}


export const routerManger = new RouterManger()